.class Lcom/xingbook/ui/c/g;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/c/b;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/ui/c/g;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    iget-object v0, p0, Lcom/xingbook/ui/c/g;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/c/b;

    iget v2, p1, Landroid/os/Message;->arg1:I

    iget v3, p1, Landroid/os/Message;->arg2:I

    iget-object v1, v0, Lcom/xingbook/ui/c/b;->e:Lcn/a/a/a;

    invoke-virtual {v1, v3}, Lcn/a/a/a;->a(I)Lcn/a/a/c/a;

    move-result-object v4

    invoke-virtual {v4}, Lcn/a/a/c/a;->a()I

    move-result v1

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->i:[Lcom/xingbook/ui/b/a;

    aget-object v5, v5, v2

    invoke-virtual {v5}, Lcom/xingbook/ui/b/a;->j()V

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->i:[Lcom/xingbook/ui/b/a;

    aget-object v5, v5, v2

    invoke-virtual {v5}, Lcom/xingbook/ui/b/a;->getPageType()I

    move-result v5

    if-ne v5, v1, :cond_1

    iget-object v1, v0, Lcom/xingbook/ui/c/b;->i:[Lcom/xingbook/ui/b/a;

    aget-object v1, v1, v2

    :goto_0
    invoke-virtual {v1, v4}, Lcom/xingbook/ui/b/a;->a(Lcn/a/a/c/a;)V

    iget v4, v0, Lcom/xingbook/ui/c/b;->h:I

    sub-int/2addr v4, v3

    invoke-static {v4}, Ljava/lang/Math;->abs(I)I

    move-result v4

    const/4 v5, 0x1

    if-gt v4, v5, :cond_0

    invoke-static {v0, v2, v1}, Lcom/xingbook/ui/c/b;->a(Lcom/xingbook/ui/c/b;ILcom/xingbook/ui/b/a;)V

    invoke-static {v0}, Lcom/xingbook/ui/c/b;->g(Lcom/xingbook/ui/c/b;)I

    move-result v1

    if-ne v1, v3, :cond_0

    iget v1, v0, Lcom/xingbook/ui/c/b;->n:I

    invoke-static {v0, v2, v1}, Lcom/xingbook/ui/c/b;->a(Lcom/xingbook/ui/c/b;II)V

    :cond_0
    return-void

    :cond_1
    packed-switch v1, :pswitch_data_0

    const/4 v1, 0x0

    goto :goto_0

    :pswitch_0
    new-instance v1, Lcom/xingbook/ui/b/e;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/e;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_1
    new-instance v1, Lcom/xingbook/ui/b/f;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/f;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_2
    new-instance v1, Lcom/xingbook/ui/b/h;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/h;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_3
    new-instance v1, Lcom/xingbook/ui/b/j;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/j;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_4
    new-instance v1, Lcom/xingbook/ui/b/n;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/n;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_5
    new-instance v1, Lcom/xingbook/ui/b/o;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/o;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_6
    new-instance v1, Lcom/xingbook/ui/b/p;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/p;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_7
    new-instance v1, Lcom/xingbook/ui/b/q;

    iget-object v5, v0, Lcom/xingbook/ui/c/b;->a:Landroid/app/Activity;

    iget-object v6, v0, Lcom/xingbook/ui/c/b;->p:Lcom/xingbook/c/o;

    invoke-direct {v1, v5, v6, v0}, Lcom/xingbook/ui/b/q;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_4
        :pswitch_7
        :pswitch_5
        :pswitch_5
        :pswitch_2
        :pswitch_1
        :pswitch_3
        :pswitch_0
        :pswitch_6
    .end packed-switch
.end method
